package com.blockchainenergy.blockChain;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 交易结构
 */
@Data
@NoArgsConstructor
public class Carbon {
    private Integer i;
    private Integer previous;
    private Double p;
    private Double e;
    // 碳流
    private Double flow;
    private Integer blockType;

    public Carbon(Integer i, Integer previous, Double p, Double e, Double flow) {
        this.i = i;
        this.previous = previous;
        this.p = p;
        this.e = e;
        this.flow = flow;
    }
}
